﻿

using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class EducationLevelConfiguration : EntityConfiguration<EducationLevel>
    {
        public EducationLevelConfiguration()
        {
            Property(e => e.EducationLevelID).IsIdentity();

            MapHierarchy(
               el => new
               {
                   el.EducationLevelID,
                   el.Description
               }
            ).ToTable("EducationLevel");
        }
    }
}
